<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="renderer" content="webkit" />
    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <title>后台管理</title>
    <link rel="stylesheet" href="{{URL::asset('bg-ui/css/vendor/bootstrap/dist/bootstrap.css')}}">
    <link rel="stylesheet" href="{{URL::asset('bg-ui/css/vendor/Animate.css')}}">
    <link rel="stylesheet" href="{{URL::asset('bg-ui/css/basic.css?v=1.0')}}">
    <link rel="stylesheet" href="{{URL::asset('vendor/select2/select2.min.css')}}">
    <link rel="stylesheet" href="{{URL::asset('bg-ui/css/vendor/font_awesome/css/font-awesome.css')}}">
    <link rel="stylesheet" href="{{URL::asset('bg-ui/js/vendor/bootstrap-datepicker/css/bootstrap-datepicker.standalone.min.css')}}">
    <script src="{{URL::asset('bg-ui/js/vendor/jquery.min.js')}}"></script>
    <script src="{{URL::asset('vendor/layer/layer.js')}}"></script>
    <!--[if lt IE 9]>
    <script src="{{URL::asset('bg-ui/js/vendor/html5shiv.min.js')}}"></script>
    <script src="{{URL::asset('bg-ui/js/vendor/respond.min.js')}}"></script>
    <![endif]-->
</head>

<body>
<header id="page_header">
    <div class="right_side">
        <span class="logout_btn" onclick="location.href='{{url('admin/admin/logout')}}'" style="width:60px;display:block;">
            <i class="fa fa-sign-out"></i>&nbsp;退出
        </span>
        <!--<span id="admin_menu_message" class="logout_btn" onclick="location.href='{{url('resource/notice/index')}}'" style="width:40px;overflow:hidden;position:relative;">
            <i class="fa fa-commenting"></i>
        </span>-->
        <span class="toggleMenu_btn"><i class="fa fa-bars"></i></span>
    </div>
</header>
<aside id="left_panel">
    <nav>
        <ul class="page-sidebar-menu">
            <li id="menu_my" class="level0">
                <a class="fa_name"><i class="fa fa-lg fa-fw fa-table"></i><span>账户信息</span></a>
                <ul style="display:none">
                    <li class="sub-menu">
                        <a href="{{url('admin/admin/index')}}">
                            <i class="fa fa-fw fa-file"></i><span>个人中心</span>
                        </a>
                    </li>
                    <li class="sub-menu">
                        <a href="{{url('admin/admin/editPwd')}}">
                            <i class="fa fa-fw fa-file"></i><span>修改密码</span>
                        </a>
                    </li>
                </ul>
            </li>
            <li id="menu_agent" class="level0">
                <a class="fa_name"><i class="fa fa-lg fa-fw fa-table"></i><span>公司管理</span></a>
                <ul style="display:none">
                    <li class="sub-menu">
                        <a href="{{url('admin/agent/index')}}">
                            <i class="fa fa-fw fa-file"></i><span>公司列表</span>
                        </a>
                    </li>
                </ul>
            </li>
            <li id="menu_my" class="level0">
                <a class="fa_name"><i class="fa fa-lg fa-fw fa-table"></i><span>云淘坊管理</span></a>
                <ul style="display:none">
                    <li class="sub-menu">
                        <a href="{{url('admin/banner/index')}}">
                            <i class="fa fa-fw fa-file"></i><span>公共Banner列表</span>
                        </a>
                    </li>
                    <li class="sub-menu">
                        <a href="{{url('admin/homeBanner/index')}}">
                            <i class="fa fa-fw fa-file"></i><span>首页Banner列表</span>
                        </a>
                    </li>
                    <li class="sub-menu">
                        <a href="{{url('admin/homeModule/index')}}">
                            <i class="fa fa-fw fa-file"></i><span>首页模块管理</span>
                        </a>
                    </li>
                </ul>
            </li>
            <li id="menu_my" class="level0">
                <a class="fa_name"><i class="fa fa-lg fa-fw fa-table"></i><span>商品列表</span></a>
                <ul style="display:none">
                    <li class="sub-menu">
                        <a href="{{url('admin/goods/index')}}">
                            <i class="fa fa-fw fa-file"></i><span>商品列表</span>
                        </a>
                    </li>
                </ul>
            </li>
            <li id="menu_my" class="level0">
                <a class="fa_name"><i class="fa fa-lg fa-fw fa-table"></i><span>订单列表</span></a>
                <ul style="display:none">
                    <li class="sub-menu">
                        <a href="{{url('admin/order/index')}}">
                            <i class="fa fa-fw fa-file"></i><span>订单列表</span>
                        </a>
                    </li>
                </ul>
            </li>
            <li id="menu_my" class="level0">
                <a class="fa_name"><i class="fa fa-lg fa-fw fa-table"></i><span>财务管理</span></a>
                <ul style="display:none">
                    <li class="sub-menu">
                        <a href="{{url('admin/order/finance')}}">
                            <i class="fa fa-fw fa-file"></i><span>财务管理</span>
                        </a>
                    </li>
                </ul>
            </li>
        </ul>
    </nav>
</aside>

<div id="main">
    @yield('content')
</div>

<script src="{{URL::asset('bg-ui/js/vendor/bootstrap/dist/bootstrap.js')}}"></script>
<script src="{{URL::asset('bg-ui/js/vendor/ie10-viewport-bug-workaround.js')}}"></script>
<script src="{{URL::asset('bg-ui/js/vendor/bootstrap-datepicker/js/bootstrap-datepicker.min.js')}}"></script>
<script src="{{URL::asset('bg-ui/js/vendor/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js')}}"></script>
<script src="{{URL::asset('vendor/select2/select2.min.js')}}"></script>
<script src="{{URL::asset('js/common.js?v=1.0')}}"></script>
<script>
    // 一级菜单点击事件
    $('.fa_name').click(function () {
        $('.page-sidebar-menu ul').hide();
        $(this).siblings('ul').show();
    });

    $(function () {
        // 二级菜单渲染初始化
        var page_base_uri = location.href.replace(/\?.*/, '');
        $('.sub-menu').each(function () {
            if (page_base_uri === $(this).children('a').attr('href')) {
                $(this).addClass('menu-highlight').parent().show();
            }
        });
    });
</script>
</body>
</html>